<template>
    <transition name="fade" appear>
      <router-view />
    </transition>
    <!-- <router-view v-slot="{ Component }">
      <transition name="fade" appear>
        <component :is="Component" />
      </transition>
    </router-view> -->
</template>

<style lang="less" scoped>
.fade-enter-from, .fade-leave-to {
  transform: translateY(-15px);
  opacity: 0;
}
.fade-enter-to, .fade-leave-from {
  opacity: 1;
}
.fade-enter-active {
  transition: all 0.7s ease;
}
.fade-leave-active {
   transition: all 0.3s cubic-bezier(1, 0.6, 0.6, 1);
}
</style>
